<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改广告组')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-campaign-edit" th:object="${campaign}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告主id：</label>
				<div class="col-sm-8">
					<input id="advertiserId" name="advertiserId" th:field="*{advertiserId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组名称：</label>
				<div class="col-sm-8">
					<input id="campaignName" name="campaignName" th:field="*{campaignName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组预算类型：</label>
				<div class="col-sm-8">
					<input id="budgetMode" name="budgetMode" th:field="*{budgetMode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组预算：</label>
				<div class="col-sm-8">
					<input id="budget" name="budget" th:field="*{budget}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告组推广目的：</label>
				<div class="col-sm-8">
					<input id="landingType" name="landingType" th:field="*{landingType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">第三方唯一键：</label>
				<div class="col-sm-8">
					<input id="uniqueFk" name="uniqueFk" th:field="*{uniqueFk}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="createUser" name="createUser" th:field="*{createUser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" readonly type="datetime" class="time-input form-control"
						   th:value="${#dates.format(campaign.createTime,'yyyy-MM-dd HH:mm:ss')}">
				</div>
			</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新人：</label>
				<div class="col-sm-8">
					<input id="updateUser" name="updateUser" th:field="*{updateUser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">更新时间：</label>
				<div class="col-sm-8">
					<input id="updateTime" name="updateTime" readonly type="datetime" class="time-input form-control"
						   th:value="${#dates.format(campaign.updateTime,'yyyy-MM-dd HH:mm:ss')}">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "dsp/campaign";
		$("#form-campaign-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-campaign-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
